--return (round((the scroll of the target / the textHeight of the target) --+ (((the clickV - top of the target - topMargin) --div the textHeight of the target) + 1)))
--end scrollLineClicked
--function lineClicked topMargin
--return ((the clickV - top of the target - topMargin) --div the textHeight of the target) + 1
--end lineClicked
on mouseUp
if Machine() is "MacII" then
repeat for 2 times
wait 4
set icon of bg button "Noz" to Noz 2
wait 4
set icon of bg button "Noz" to Noz 3
wait 4
set icon of bg button "Noz" to Noz 4
wait 4
set icon of bg button "Noz" to Noz 5
wait 4
set icon of bg button "Noz" to Noz 6
wait 4
set icon of bg button "Noz" to Noz 7
wait 4
set icon of bg button "Noz" to Noz 8
wait 4
set icon of bg button "Noz" to Noz 9
wait 4
set icon of bg button "Noz" to Noz 10
wait 4
set icon of bg button "Noz" to Noz 8
wait 4
set icon of bg button "Noz" to Noz 9
wait 4
set icon of bg button "Noz" to Noz 10
wait 4
set icon of bg button "Noz" to Noz 9
wait 4
set icon of bg button "Noz" to Noz 8
wait 4
set icon of bg button "Noz" to Noz 8
wait 4
set icon of bg button "Noz" to Noz 9
wait 4
set icon of bg button "Noz" to Noz 10
wait 4
set icon of bg button "Noz" to Noz 7
wait 4
set icon of bg button "Noz" to Noz 6
wait 4
set icon of bg button "Noz" to Noz 5
wait 4
set icon of bg button "Noz" to Noz 4
wait 4
set icon of bg button "Noz" to Noz 3
wait 4
set icon of bg button "Noz" to Noz 2
wait 4
set icon of bg button "Noz" to Noz 1
end repeat
else
repeat for 2 times
wait 1
set icon of bg button "Noz" to Noz 2
wait 1
set icon of bg button "Noz" to Noz 3
wait 1
set icon of bg button "Noz" to Noz 4
wait 1
set icon of bg button "Noz" to Noz 5
wait 1
set icon of bg button "Noz" to Noz 6
wait 1
set icon of bg button "Noz" to Noz 7
wait 1
set icon of bg button "Noz" to Noz 8
wait 1
set icon of bg button "Noz" to Noz 9
wait 1
set icon of bg button "Noz" to Noz 10
wait 1
set icon of bg button "Noz" to Noz 8
wait 1
set icon of bg button "Noz" to Noz 9
wait 1
set icon of bg button "Noz" to Noz 10
wait 1
set icon of bg button "Noz" to Noz 9
wait 1
set icon of bg button "Noz" to Noz 8
wait 1
set icon of bg button "Noz" to Noz 8
wait 1
set icon of bg button "Noz" to Noz 9
wait 1
set icon of bg button "Noz" to Noz 10
wait 1
set icon of bg button "Noz" to Noz 7
wait 1
set icon of bg button "Noz" to Noz 6
wait 1
set icon of bg button "Noz" to Noz 5
wait 1
set icon of bg button "Noz" to Noz 4
wait 1
set icon of bg button "Noz" to Noz 3
wait 1
set icon of bg button "Noz" to Noz 2
wait 1
set icon of bg button "Noz" to Noz 1
end repeat
end if
end mouseUp
on openBackground
show menuBar
end openBackground
-- part 1 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=10 top=311 right=333 bottom=91
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
go Home
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=464 top=117 right=151 bottom=498
-- title width / last selected line: 0
-- icon id / first selected line: 7401 / 7401
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Noz
----- HyperTalk script -----
on mouseUp
if the optionKey is down then
visual effect dissolve slowly
go to cd ID 16039
exit mouseUp
else
put "Try clicking on the background." into msg
wait 3 secs
hide msg
end if
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=397 top=311 right=333 bottom=498
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Problem Set
----- HyperTalk script -----
on mouseUp
put "This feature not available for the demo." into msg